<?php

class Nuo_Log_Abstract
{

	/**
	 * Using if LOG_DELAY is set to 1
	 * @param array $data
	 */
	protected $_data = array();

	/**
	 * flush log content to log store
	 */
	function flush()
	{

	}

	/**
	 * constructor
	 * @param array $config
	 * @return void
	 */
	function __construct($config)
	{

	}

	/**
	 * @param string $message
	 * @param string $level
	 * @return Log_Null
	 */
	function write($message, $level = Nuo::INFO)
	{
		return $this;
	}

	/**
	 * @param string $message
	 * @param string $level
	 * @return string
	 */
	function format($message, $level)
	{
		if (!is_string($message))
		{
			$message = var_export($message, 1);
		}

		return PHP_EOL . 'Request Code: ' . Nuo::getCode() . PHP_EOL . date('Y-m-d H:i:s') . ': ' . $level . PHP_EOL . $message . PHP_EOL;
	}

}
